﻿using FieldTools.Client.ViewModel.Window;
using FieldTools.Util;
using FieldTools.Util.Helper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace FieldTools.Client.View.Window
{
    /// <summary>
    /// ADBWindow.xaml 的交互逻辑
    /// </summary>
    public partial class ADBWindow : MahApps.Metro.Controls.MetroWindow, ITransientDependency
    {
        public ADBWindow(ADBViewModel vm)
        {
            InitializeComponent();
            this.DataContext = vm;
            this.Closing += ADBWindow_Closing;
        }

        private void ADBWindow_Closing(object? sender, System.ComponentModel.CancelEventArgs e)
        {
            ADBHelper.KillAdb();
        }
    }
}
